package cn.tedu.boot.ers.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("菜碟新增DTO")
public class DishesInsertDTO implements Serializable {
    @NotNull(message = "商品id不能为空")
    @ApiModelProperty(value = "选的商品id", name = "productId", example = "1")
    private Long productId;
    @NotNull(message = "用户id不能为空")
    @ApiModelProperty(value = "用户id", name = "userId", example = "1")
    private Long userId;
}
